package com.xiashitech.agent.proxy.hutool;

import com.xiashitech.agent.cache.classloader.ClassLoaderCache;
import com.xiashitech.agent.config.StartConfig;

public class DateUtil {
    private static String className = "cn.hutool.core.date.DateUtil";

    public static String now() {
        try {
            Class dateUtilClass = ClassLoaderCache.getLaunchClassLoader().loadClass(className);
            return (String)dateUtilClass.getMethod("now").invoke(null);
        } catch (Throwable e) {
            StartConfig.throwableStackPrinter(e);
        }
        return "";
    }
}
